package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.sell.model.entity.CustomerDueSubject;
import com.wing.sell.model.request.CustomerDueSubjectForm;
import com.wing.sell.model.response.CustomerDueSubjectVO;

import java.util.List;
import java.util.Map;

/**
 * 客户尽调科目-Service
 *
 * @author
 */
public interface CustomerDueSubjectService extends IService<CustomerDueSubject> {

    /**
     * 添加
     *
     * @param customerDueSubjectForm
     * @return
     */
    int add(CustomerDueSubjectForm customerDueSubjectForm);

    /**
     * 修改
     *
     * @param customerDueSubject
     * @return
     */
    boolean update(CustomerDueSubject customerDueSubject);

    /**
     * 列表-app
     *
     * @param params
     * @return
     */
    List<CustomerDueSubjectVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     * @return
     */
    Page<CustomerDueSubjectVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     * @return
     */
    CustomerDueSubjectVO get4appById(Long id);

    /**
     * 删除
     *
     * @param customerDueSubjectId
     * @return
     */
    boolean delete(Long customerDueSubjectId);

    /**
     * 启用
     *
     * @param id
     * @return
     */
    int enable(Long id);

    /**
     * 停用
     *
     * @param id
     * @return
     */
    int disable(Long id);
}
